package cn.tedu.springDI;

import org.springframework.stereotype.Component;

@Component //@Component("phone")指定变量，解决@Autowired注入歧义的问题
public class GamePhone implements Phone{
    public GamePhone() {
        System.out.println("GamePhone的构造方法被调用了！");
    }

    @Override
    public String toString() {
        return "【游戏手机】";
    }
}
